package com.hqyj.project.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class AttendanceDto {
    private Integer clockId;
    private String userName;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date clockDate;
    private String mornSignIn;
    private String mornSignOut;
    private String afterSignIn;
    private String afterSignOut;
    private Integer clockUserId;
    private Integer currentPage;
    private Integer pageSize;
    private Integer startIndex;

    public Integer getStartIndex() {
        return (this.currentPage-1)*this.pageSize;
    }
}
